<?php
include(WEIXIN_ROBOT_PLUGIN_DIR.'admin/includes/class-weixin-reply-setting.php');
include(WEIXIN_ROBOT_PLUGIN_DIR.'admin/includes/class-weixin-message.php');
include(WEIXIN_ROBOT_PLUGIN_DIR.'admin/includes/class-weixin-user.php');

add_filter('wpjam_weixin_messages_list_table', function(){
	return [
		'title'				=> '消息管理',
		'singular'			=> 'weixin-message',
		'plural'			=> 'weixin-messages',
		'primary_column'	=> 'username',
		'primary_key'		=> 'id',
		'model'				=> 'WEIXIN_AdminMessage',
		'ajax'				=> true,
		'style'				=> '
			th.column-MsgType{width:60px;}
			th.column-Response{width:94px;}
			th.column-CreateTime{width:84px;}
			th.column-username{width:240px;}
		'
	];
});